package com.sunda.spmsorder.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 车间请购单详情表
 * </p>
 *
 * @author Wayne
 * @since 2021-02-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ORDER_WORKSHOP_DTL")
@ApiModel(value="OrderWorkshopDtl对象", description="车间请购单详情表")
public class OrderWorkshopDtl implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "java生成唯一ID，用于和车间请购单表关联。新增数据时关联获取车间请购单号。")
    @TableField("UUID")
    private String uuid;

    @ApiModelProperty(value = "车间请购单号")
    @TableField("SPMS_WS_ID")
    private String spmsWsId;

    @ApiModelProperty(value = "车间请购单行号")
    @TableField("ROW_ID")
    private Integer rowId;

    @ApiModelProperty(value = "物料编号")
    @TableField("MATERIAL_NO")
    private String materialNo;

    @ApiModelProperty(value = "物料描述中文")
    @TableField("MATERIAL_ZH_DESC")
    private String materialZhDesc;

    @ApiModelProperty(value = "物料描述英文")
    @TableField("MATERIAL_EN_DESC")
    private String materialEnDesc;

    @ApiModelProperty(value = "提交数量（车间主任）")
    @TableField("REQUEST_QTY")
    private Double requestQty;

    @ApiModelProperty(value = "批准数量（机电主任）")
    @TableField("APPROVAL_QTY")
    private Double approvalQty;

    @ApiModelProperty(value = "基本单位")
    @TableField("BASIC_UNIT")
    private String basicUnit;

    @ApiModelProperty(value = "品牌")
    @TableField("BRAND")
    private String brand;

    @ApiModelProperty(value = "行项目状态")
    @TableField("ROW_STATUS")
    private String rowStatus;

    @ApiModelProperty(value = "行项目备注")
    @TableField("ROW_COMMENT")
    private String rowComment;

    @ApiModelProperty(value = "需求匹配的设备编码")
    @TableField("DEVICE_ID")
    private String deviceId;

    @ApiModelProperty(value = "设备/物料类别，3备品备件；4行政物资；5工厂设备；6筹建物资")
    @TableField("DEVICE_CATEGORY")
    private String deviceCategory;

    @ApiModelProperty(value = "设备类型,0实验室设备；生产设备")
    @TableField("DEVICE_TYPE")
    private String deviceType;

    @ApiModelProperty(value = "物料类别")
    @TableField("MATERIAL_CATEGORY")
    private String materialCategory;

    @ApiModelProperty(value = "长协编号")
    @TableField("LONG_CONTRACT_CODE")
    private String longContractCode;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getSpmsWsId() {
        return spmsWsId;
    }

    public void setSpmsWsId(String spmsWsId) {
        this.spmsWsId = spmsWsId;
    }

    public Integer getRowId() {
        return rowId;
    }

    public void setRowId(Integer rowId) {
        this.rowId = rowId;
    }

    public String getMaterialNo() {
        return materialNo;
    }

    public void setMaterialNo(String materialNo) {
        this.materialNo = materialNo;
    }

    public String getMaterialZhDesc() {
        return materialZhDesc;
    }

    public void setMaterialZhDesc(String materialZhDesc) {
        this.materialZhDesc = materialZhDesc;
    }

    public String getMaterialEnDesc() {
        return materialEnDesc;
    }

    public void setMaterialEnDesc(String materialEnDesc) {
        this.materialEnDesc = materialEnDesc;
    }

    public Double getRequestQty() {
        return requestQty;
    }

    public void setRequestQty(Double requestQty) {
        this.requestQty = requestQty;
    }

    public Double getApprovalQty() {
        return approvalQty;
    }

    public void setApprovalQty(Double approvalQty) {
        this.approvalQty = approvalQty;
    }

    public String getBasicUnit() {
        return basicUnit;
    }

    public void setBasicUnit(String basicUnit) {
        this.basicUnit = basicUnit;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getRowStatus() {
        return rowStatus;
    }

    public void setRowStatus(String rowStatus) {
        this.rowStatus = rowStatus;
    }

    public String getRowComment() {
        return rowComment;
    }

    public void setRowComment(String rowComment) {
        this.rowComment = rowComment;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceCategory() {
        return deviceCategory;
    }

    public void setDeviceCategory(String deviceCategory) {
        this.deviceCategory = deviceCategory;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getMaterialCategory() {
        return materialCategory;
    }

    public void setMaterialCategory(String materialCategory) {
        this.materialCategory = materialCategory;
    }

    public String getLongContractCode() {
        return longContractCode;
    }

    public void setLongContractCode(String longContractCode) {
        this.longContractCode = longContractCode;
    }

    @Override
    public String toString() {
        return "OrderWorkshopDtl{" +
                "uuid='" + uuid + '\'' +
                ", spmsWsId='" + spmsWsId + '\'' +
                ", rowId=" + rowId +
                ", materialNo='" + materialNo + '\'' +
                ", materialZhDesc='" + materialZhDesc + '\'' +
                ", materialEnDesc='" + materialEnDesc + '\'' +
                ", requestQty=" + requestQty +
                ", approvalQty=" + approvalQty +
                ", basicUnit='" + basicUnit + '\'' +
                ", brand='" + brand + '\'' +
                ", rowStatus='" + rowStatus + '\'' +
                ", rowComment='" + rowComment + '\'' +
                ", deviceId='" + deviceId + '\'' +
                ", deviceCategory='" + deviceCategory + '\'' +
                ", deviceType='" + deviceType + '\'' +
                ", materialCategory='" + materialCategory + '\'' +
                ", longContractCode='" + longContractCode + '\'' +
                '}';
    }
}
